package com.gi.profiler.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * @author Ruba
 * 
 */
@DatabaseTable(tableName = "WayPoint")
public class WayPoint {

    @DatabaseField(generatedId = true)
    private int id;

    @DatabaseField(defaultValue = "")
    private String city;

    @DatabaseField(defaultValue = "")
    private String country;

    @DatabaseField(defaultValue = "")
    private String street;

    @DatabaseField
    private double latitude;

    @DatabaseField
    private double longitude;

    public WayPoint() {
	// Needed by the ORMLite engine
    }

    public WayPoint(double latitude, double longitude) {
	super();
	this.latitude = latitude;
	this.longitude = longitude;
    }

    /**
     * @return the id
     */
    public int getId() {
	return id;
    }

    /**
     * @return the city
     */
    public String getCity() {
	return city;
    }

    /**
     * @return the country
     */
    public String getCountry() {
	return country;
    }

    /**
     * @return the street
     */
    public String getStreet() {
	return street;
    }

    /**
     * @return the latitude
     */
    public double getLatitude() {
	return latitude;
    }

    /**
     * @return the logitude
     */
    public double getLongitude() {
	return longitude;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(int id) {
	this.id = id;
    }

    /**
     * @param city
     *            the city to set
     */
    public void setCity(String city) {
	this.city = city;
    }

    /**
     * @param country
     *            the country to set
     */
    public void setCountry(String country) {
	this.country = country;
    }

    /**
     * @param street
     *            the street to set
     */
    public void setStreet(String street) {
	this.street = street;
    }

    /**
     * @param latitude
     *            the latitude to set
     */
    public void setLatitude(double latitude) {
	this.latitude = latitude;
    }

    /**
     * @param longitude
     *            the longitude to set
     */
    public void setLongitude(double longitude) {
	this.longitude = longitude;
    }

}
